﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserMemberCardList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.Shop.Member.UserMemberCardList" %>



<%@ Import Namespace ="ZLCMS.Business.Util" %>

<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>


<%=_framePage.TabInfoHtml()%>

<form id="pageForm" method="post" class="pageForm" runat="Server">
<div class="pageHeader">
    <div class="searchBar">
		<ul class="searchContent">
			<li>
            <span>会员卡号</span>
          <input   type="text" cond='cardno' value='<%=Request["cardno"] %>'/>
            </li>
            <li>
            <span>子卡号</span>
         <input   type="text" cond='subcardno' value='<%=Request["subcardno"] %>'/>
            </li>
            <li>
            <span>类型</span>
                <asp:DropDownList runat="server"  cond='kind'  id="ddl_member_card_kind"></asp:DropDownList>
            </li>
            </ul>
        
        <input   type="hidden" cond='ruleid' value='<%=Request["ruleid"] %>'/>
	    <div class="subBar">
			<ul>
			<li>
			    <a class="button" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.query(this);" 
			    target="navTab" rel="<%= _framePage.NavTabId %>" title="<%= _framePage.NavTabTitle %>"><span>&nbsp;查&nbsp;询&nbsp;</span></a>
			</li>
            
	<%--		<li>
			    <a class="button" href="<%= Request.Path %>" onclick="ZLAN_DWZ_EX.exportFile(this);" 
			    target="dwzExport" rel="exportexcel" title="导出EXCEL"><span>导出EXCEL</span></a>
			</li>--%>
			</ul>
	    </div>
	</div>
</div>
</form>

<div class="pageContent">   
   	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add"  href="/SystemManage/Basics/Shop/MemberCard/MemberCardDetail.aspx?cardno=<%= Request["cardno"] %>" target="navTab" rel="MemberCardDetail" title="会员明细"><span>添加</span></a></li>
            <li><a class="delete" href="/SystemManage/Basics/Shop/MemberCard/MemberCardDelete.aspx" target="selectedTodo" title="请确定要删除勾选会员"><span>删除</span></a></li>
		
        </ul>
	</div>
	<div class="tableList"   layoutH="116">
	<table class="list" targetType="navTab" asc="asc" desc="desc">
	    <thead>
			<tr>
                <th width="22px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
				<th width="100px">标题</th>
                <th width="100px">会员卡号</th>
				<th width="100px">子卡号</th>
				<th width="100px">简介</th>
				<th width="150px">有效期</th>
				<th width="150px">申请时间</th>
				<th width="100px">类型</th>
				<th width="120px">余额</th>
				<th width="150px" align="center">操作</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="repeater1">
                <ItemTemplate>
			    <tr target="uid" rel=<%# Eval("Id")%>>
                    <td><input name="ids" value="<%#Eval("Id")%>" type="checkbox"/></td>
				    <td><%# Eval("Title")%></td>
                    <td><%# Eval("CardNo")%></td>
				    <td><%# Eval("SubCardNo")%></td>
				    <td><%# Eval("Description")%></td>
				    <td><%#Eval("StartDate","{0:yyyy-MM-dd }")%> -- <%# Eval("EndDate", "{0:yyyy-MM-dd }")%></td>
				    <td><%# Eval("ApplyDate")%></td>
				    <td><%# ZLCMS.Business.Util.ParamKit.GetValue("MemberCardKind",Eval("Kind") as string,"未知")   %></td>
				    <td><%# Eval("RemainAmount")%></td>

				    <td align="center">
				        <a href="/SystemManage/Basics/Shop/MemberCard/MemberCardDetail.aspx?uid=<%# Eval("Id")%>" target="navTab" rel="MemberDetail" title="会员明细">编辑</a>
				        &nbsp;&nbsp;
				        <a href="/SystemManage/Basics/Shop/MemberCard/MemberCardDelete.aspx?ids=<%# Eval("Id")%>" target="ajaxTodo" title="请确定要删除">删除</a>
                        &nbsp;&nbsp;
                         <a href='/SystemManage/Basics/shop/MemberCard/MemberCardTrade.aspx?type=charge&uid=<%# Eval("Id")%>'   target="dialog" width="600" height="400" rel="MemberCardCharge" title="充值">充值</a>
                         &nbsp;&nbsp;
                         <a href='/SystemManage/Basics/shop/MemberCard/MemberCardTrade.aspx?type=consumpiton&uid=<%# Eval("Id")%>'   target="dialog" width="600" height="400" rel="MemberCardConsumption" title="消费">消费</a>
				    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>

	</div>
	
    
    
<%= _framePage.GetPagerContentHtml() %>
</div>
